libxl: use libxl_domain_config_init and not memset 0
authorIan Campbell <ian.campbell@citrix.com>
Wed, 25 Apr 2012 10:35:42 +0000 (11:35 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Apr 2012 10:35:42 +0000 (11:35 +0100)
commit8396671c939c3e42e8e96dda19800f8dcad20b65
tree764acae6b5402502a7933bab787a5d31d811dbac
parent57c15d9691047ef84789e37e4f860a92372470cd
libxl: use libxl_domain_config_init and not memset 0

I missed a couple of memsets in 25237:31489be80c51, we need to use
libxl_domain_config_init everywhere and not memset since not all fields are
initialised to zero now (the type field in particular). This fixes an abort
with "xl list <dom>" for a specific domain due to assert(type == -1) in
libxl_domain_build_info_init_type().

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c